import request from '../utils/request'
export function AuthCode() {
    return request({
        url: 'captcha/api/math',
        method: 'get',
    })
}
export function LoginData(params: any) {
    return request({
        url: "api/common/auth/login",
        method: 'post',
        data: params
    })
}
export function jwtPreCheck() {
    return request({
        url: 'api/common/auth/jwtPreCheck',
        method: "get",
    })
}
export function AdminInfo(params: any) {
    return request({
        url: 'api/common/auth/adminInfo',
        method: "get",
        params
    })
}

// 用户列表
export function getData(params: any) {
    return request({
        url: "api/users",
        method: "get",
        params
    })
}

// jw预检
export function jwtApi() {
    return request({
        url: "api/common/auth/jwtPreCheck",
        method: "get",
    })
}

// 获取登录用户信息
export function getUserInfo() {
    return request({
        url: "api/common/auth/adminInfo",
        method: "get"
    })
}

export function test() {
    return request({
        url: "api/users",
        method: "get",
    })
}